<?xml version="1.0" encoding="UTF-8"?>
<!-- 
    Document   : Admin
    Created on : 01/09/2009, 14:23:45
    Author     : Jaime Jr
-->
<jsp:root version="2.1" xmlns:f="http://java.sun.com/jsf/core" xmlns:h="http://java.sun.com/jsf/html" xmlns:ice="http://www.icesoft.com/icefaces/component"
    xmlns:jsp="http://java.sun.com/JSP/Page" xmlns:webuijsf="http://www.sun.com/webui/webuijsf">
    <jsp:directive.page contentType="text/html;charset=UTF-8" pageEncoding="UTF-8"/>
    <f:view>
        <ice:outputHtml id="outputHtml1">
            <ice:outputHead id="outputHead1">
                <ice:outputStyle href="./resources/stylesheet.css" id="outputStyle1"/>
                <ice:outputStyle href="./xmlhttp/css/xp/xp.css" id="outputStyle2"/>
                <!-- Java Script -->
                <script>
                function hidden(){
                document.body.style.overflow='hidden';
                }
                /* Função para mascarar o campo */
                function mascara(o,f){
                  v_obj=o;
                  v_fun=f;
                  setTimeout("execmascara()",1);
                }
                /* Função para executar a mascara */
                function execmascara(){
                  v_obj.value=v_fun(v_obj.value);
                }
                /* Função para padronizar o CPF */
                function cpf(v){
                  v=v.replace(/\D/g,"")
                  v=v.replace(/(\d{3})(\d)/,"$1.$2")
                  v=v.replace(/(\d{3})(\d)/,"$1.$2")
                  v=v.replace(/(\d{3})(\d{1,2})$/,"$1-$2")
                  return v;
                }
                </script>
                <!-- Título da Aba -->
                <title>Gerenciamento de Administrador</title>
            </ice:outputHead>
            <body onload="hidden();">
                <ice:outputBody id="outputBody1" style="-rave-layout: grid">
                    <ice:form id="form1">
                        <!-- Painel Sair -->
                        <ice:panelPopup autoCentre="true" binding="#{Admin$Admin.painelSair}" draggable="false" id="painelSair" modal="true"
                            rendered="#{Admin$Admin.painelPopupSair.showDraggablePanel}"
                            style="height: 210px; left: 672px; right: 200px; top: 384px; bottom: 200px; position: absolute; width: 405px" visible="#{Admin$Admin.painelPopupSair.showModalPanel}">
                            <f:facet name="header">
                                <ice:panelGrid id="painelSairCabecalho" style="display: block; height: 30px; width: 180px">
                                    <ice:outputText id="msgSairTitulo" style="text-align: left" value="Sair"/>
                                </ice:panelGrid>
                            </f:facet>
                            <f:facet name="body">
                                <ice:panelLayout id="painelSairCorpo" layout="flow" style="display: block; height: 180px; position: absolute; width: 405px; -rave-layout: grid">
                                    <ice:outputText id="msgPainelSair"
                                        style="font-family: Verdana,Arial,Helvetica,sans-serif; font-size: 18px; left: 24px; top: 24px; position: absolute; text-align: center; width: 357px" value="Tem certeza que deseja sair dessa tela?"/>
                                    <ice:commandButton action="#{Admin$Admin.botaoSairSim_action}" binding="#{Admin$Admin.botaoSairSim}" id="botaoSairSim"
                                        image="/resources/botaoSim.png" immediate="true"
                                        style="font-family: Verdana,Arial,Helvetica,sans-serif; font-size: 16px; left: 30%; top: 55%; position: absolute" value="Sim"/>
                                    <ice:commandButton action="#{Admin$Admin.botaoSairNao_action}" binding="#{Admin$Admin.botaoSairNao}" id="botaoSairNao"
                                        image="/resources/botaoNao.png" immediate="true"
                                        style="font-family: Verdana,Arial,Helvetica,sans-serif; font-size: 16px; right: 30%; top: 55%; position: absolute" value="Não"/>
                                </ice:panelLayout>
                            </f:facet>
                        </ice:panelPopup>
                        <!-- Painel Consulta -->
                        <ice:panelPopup autoCentre="true" binding="#{Admin$Admin.painelConsulta}" draggable="false" id="painelConsulta" modal="true"
                            rendered="#{Admin$Admin.painelPopupConsultar.showDraggablePanel}"
                            style="height: 210px; left: 288px; top: 408px; position: absolute; width: 405px" visible="#{Admin$Admin.painelPopupConsultar.showModalPanel}">
                            <f:facet name="header">
                                <ice:panelGrid id="painelConsultaCabecalho" style="display: block; height: 30px; width: 300px">
                                    <ice:outputText id="msgPainelConsulta" style="" value="Consulta Administrador"/>
                                </ice:panelGrid>
                            </f:facet>
                            <f:facet name="body">
                                <ice:panelLayout id="painelConsultaCorpo" layout="flow" style="display: block; height: 180px; position: absolute; width: 405px; -rave-layout: grid">
                                    <ice:outputText id="msgConsultaTitulo"
                                        style="font-family: Verdana,Arial,Helvetica,sans-serif; font-size: 18px; left: 24px; top: 0px; position: absolute; text-align: center; width: 357px" value="Digite o nome do Administrador a ser consultado:"/>
                                    <ice:commandButton action="#{Admin$Admin.botaoConsultaOk_action}" binding="#{Admin$Admin.botaoConsultaOk}"
                                        id="botaoConsultaOk" image="/resources/botaoOk.png" immediate="true"
                                        style="font-family: Verdana,Arial,Helvetica,sans-serif; font-size: 16px; left: 25%; top: 65%; position: absolute" value="OK"/>
                                    <ice:commandButton action="#{Admin$Admin.botaoConsultaCancelar_action}" binding="#{Admin$Admin.botaoConsultaCancelar}"
                                        id="botaoConsultaCancelar" image="/resources/botaoCancelar.png" immediate="true" partialSubmit="true"
                                        style="font-family: Verdana,Arial,Helvetica,sans-serif; font-size: 16px; right: 25%; top: 65%; position: absolute" value="Cancelar"/>
                                    <ice:selectInputText binding="#{Admin$Admin.campoBuscaAdm}" id="campoBuscaAdm"
                                        style="font-family: Verdana,Arial,Helvetica,sans-serif; left: 48px; top: 48px; position: absolute"
                                        valueChangeListener="#{Admin$Admin.campoBuscaAdm_processValueChange}" width="309">
                                        <f:selectItems id="selectInputText1selectedItems" value="#{Admin$Admin.campoBuscaIncremental}"/>
                                    </ice:selectInputText>
                                </ice:panelLayout>
                            </f:facet>
                        </ice:panelPopup>
                        <!-- Painel Aviso -->
                        <ice:panelPopup autoCentre="true" binding="#{Admin$Admin.painelAviso}" draggable="false" id="painelAviso" modal="true"
                            rendered="#{Admin$Admin.painelPopupAviso.showDraggablePanel}"
                            style="height: 210px; left: 672px; top: 432px; position: absolute; width: 405px" visible="#{Admin$Admin.painelPopupAviso.showModalPanel}">
                            <f:facet name="header">
                                <ice:panelGrid id="painelAvisoCabecalho" style="display: block; height: 30px; width: 180px">
                                    <ice:outputText id="msgPainelAviso" value="Aviso"/>
                                </ice:panelGrid>
                            </f:facet>
                            <f:facet name="body">
                                <ice:panelLayout id="painelAvisoCorpo" layout="flow" style="display: block; height: 180px; position: absolute; width: 405px; -rave-layout: grid">
                                    <ice:outputText binding="#{Admin$Admin.msgAvisoResultado}" id="msgAvisoResultado"
                                        style="font-family: Verdana,Arial,Helvetica,sans-serif; font-size: 18px; height: 17px; left: 24px; top: 24px; position: absolute; text-align: center; width: 357px" value="Não houve resultado "/>
                                    <ice:outputText binding="#{Admin$Admin.msgAvisoPergunta}" id="msgAvisoPergunta"
                                        style="font-family: Verdana,Arial,Helvetica,sans-serif; font-size: 18px; height: 17px; left: 24px; top: 72px; position: absolute; text-align: center; width: 357px" value="Deseja fazer outra consulta?"/>
                                    <ice:commandButton action="#{Admin$Admin.botaoAvisoNao_action}" binding="#{Admin$Admin.botaoAvisoNao}" id="botaoAvisoNao"
                                        image="/resources/botaoNao.png" immediate="true" partialSubmit="true"
                                        style="font-family: Verdana,Arial,Helvetica,sans-serif; font-size: 16px; right: 30%; top: 65%; position: absolute" value="Não"/>
                                    <ice:commandButton action="#{Admin$Admin.botaoAvisoSim_action}" binding="#{Admin$Admin.botaoAvisoSim}" id="botaoAvisoSim"
                                        image="/resources/botaoSim.png" immediate="true"
                                        style="font-family: Verdana,Arial,Helvetica,sans-serif; font-size: 16px; left: 30%; top: 65%; position: absolute" value="Sim"/>
                                </ice:panelLayout>
                            </f:facet>
                        </ice:panelPopup>
                        <!-- Painel Mensagem -->
                        <ice:panelPopup autoCentre="true" binding="#{Admin$Admin.painelMensagem}" draggable="false" id="painelMensagem" modal="true"
                            rendered="#{Admin$Admin.painelPopupMensagem.showDraggablePanel}"
                            style="height: 210px; left: 672px; top: 456px; position: absolute; width: 405px" visible="#{Admin$Admin.painelPopupMensagem.showModalPanel}">
                            <f:facet name="header">
                                <ice:panelGrid id="painelMensagemCabecalho" style="display: block; height: 30px; width: 180px">
                                    <ice:outputText id="msgPainelMensagem" value="Atenção"/>
                                </ice:panelGrid>
                            </f:facet>
                            <f:facet name="body">
                                <ice:panelLayout id="painelMensagemCorpo" layout="flow" style="display: block; height: 180px; position: absolute; width: 405px; -rave-layout: grid">
                                    <ice:outputText binding="#{Admin$Admin.msgMensagemResultado}" id="msgMensagemResultado"
                                        style="font-family: 'Verdana','Arial','Helvetica',sans-serif; font-size: 18px; height: 17px; left: 24px; top: 24px; position: absolute; text-align: center; width: 357px" value="Operação Efetuada com Sucesso"/>
                                    <ice:commandButton action="#{Admin$Admin.botaoMensagemOk_action}" binding="#{Admin$Admin.botaoMensagemOk}"
                                        id="botaoMensagemOk" image="/resources/botaoOk.png" immediate="true"
                                        style="font-family: Verdana,Arial,Helvetica,sans-serif; font-size: 16px; left: 45%; top: 70%; position: absolute" value="Ok"/>
                                </ice:panelLayout>
                            </f:facet>
                        </ice:panelPopup>
                        <!-- Painel Mensagem -->
                        <ice:panelGroup id="painelGeral" style="height: 768px; margin-left: -512px; left: 50%; top: 0px; bottom: 0px; position: absolute; width: 1024px">
                            <ice:graphicImage id="imagemFundo"
                                style="height: 768px; margin-left: -512px; left: 50%; top: 0px; bottom: 0px; position: absolute; width: 1024px" url="/resources/Administrador.jpg"/>
                            <ice:panelLayout id="painelConteudo" layout="flow" style="font-family: 'Courier New',Courier,monospace; font-size: 14px; height: 620px; left: 2%; top: 12%; position: absolute; width: 980px; -rave-layout: grid">
                                <!-- Labels -->
                                <ice:outputText id="labelAssociado"
                                    style="font-family: 'Verdana','Arial','Helvetica',sans-serif; font-size: 16px; left: 96px; top: 96px; position: absolute; text-align: right; width: 166px" value="Associado?"/>
                                <ice:outputText id="labelNivel"
                                    style="font-family: 'Verdana','Arial','Helvetica',sans-serif; font-size: 16px; left: 96px; top: 120px; position: absolute; text-align: right; width: 166px" value="Nível:"/>
                                <ice:outputText id="labelNome"
                                    style="font-family: 'Verdana','Arial','Helvetica',sans-serif; font-size: 16px; left: 96px; top: 144px; position: absolute; text-align: right; width: 166px" value="Nome:"/>
                                <ice:outputText id="labelCpf"
                                    style="font-family: 'Verdana','Arial','Helvetica',sans-serif; font-size: 16px; left: 96px; top: 168px; position: absolute; text-align: right; width: 166px" value="CPF:"/>
                                <ice:outputText id="labelSenha"
                                    style="font-family: 'Verdana','Arial','Helvetica',sans-serif; font-size: 16px; left: 96px; top: 192px; position: absolute; text-align: right; width: 166px" value="Senha:"/>
                                <ice:outputText id="labelConfirmaSenha"
                                    style="font-family: 'Verdana','Arial','Helvetica',sans-serif; font-size: 16px; left: 96px; top: 216px; position: absolute; text-align: right; width: 166px" value="Confirma Senha:"/>
                                <ice:outputText id="labelFraseSecreta"
                                    style="font-family: 'Verdana','Arial','Helvetica',sans-serif; font-size: 16px; left: 96px; top: 240px; position: absolute; text-align: right; width: 166px" value="Dica de senha:"/>
                                <!-- Radio Associado para marcar se é ou não associado -->
                                <ice:selectOneRadio binding="#{Admin$Admin.radioAssociado}" id="radioAssociado" partialSubmit="true"
                                    style="font-family: 'Verdana','Arial','Helvetica',sans-serif; left: 264px; top: 96px; position: absolute; width: 230px"
                                    value="#{Admin$Admin.associadoSimNao.selectedObject}" valueChangeListener="#{Admin$Admin.radioAssociado_processValueChange}">
                                    <f:selectItems id="selectOneRadio1selectItems" value="#{Admin$Admin.opcoesAssociado}"/>
                                </ice:selectOneRadio>
                                <!-- Radio Níveis para selecionar se é usuario ou administrador -->
                                <ice:selectOneRadio binding="#{Admin$Admin.radioNiveis}" id="radioNiveis" partialSubmit="true"
                                    style="font-family: Verdana,Arial,Helvetica,sans-serif; left: 264px; top: 120px; position: absolute; width: 230px" value="#{Usuario.tipo}">
                                    <f:selectItems id="selectOneRadio1selectItems1" value="#{Admin$Admin.niveis}"/>
                                </ice:selectOneRadio>
                                <!-- Painel Nome -->
                                <ice:panelLayout binding="#{Admin$Admin.painelNome}" id="painelNome" layout="flow" style="height: 22px; left: 264px; top: 144px; position: absolute; width: 501px; -rave-layout: grid">
                                    <ice:inputText action="#{Admin$Admin.campoNome_action}" binding="#{Admin$Admin.campoNome}" id="campoNome" maxlength="200"
                                        partialSubmit="true" required="true"
                                        style="font-family: 'Verdana','Arial','Helvetica',sans-serif; left: -2px; top: -2px; position: absolute; width: 230px; z-index: 0" value="#{Usuario.nome}"/>
                                    <ice:message errorClass="errorMessage" fatalClass="fatalMessage" for="campoNome" id="msgNome" infoClass="infoMessage"
                                        showSummary="true"
                                        style="color: red; font-family: 'Verdana','Arial','Helvetica',sans-serif; font-size: 14px; font-style: normal; font-weight: bold; height: 20px; left: 240px; top: 0px; position: absolute; width: 285px" warnClass="warnMessage"/>
                                </ice:panelLayout>
                                <!-- Painel Associado -->
                                <ice:panelLayout binding="#{Admin$Admin.painelAssociado}" id="painelAssociado" layout="flow" style="height: 22px; left: 264px; top: 144px; position: absolute; width: 573px; -rave-layout: grid">
                                    <ice:selectOneMenu binding="#{Admin$Admin.comboAssociado}" id="comboAssociado" partialSubmit="true" required="true"
                                        style="font-family: 'Verdana','Arial','Helvetica',sans-serif; left: -2px; top: -2px; position: absolute; width: 230px; z-index: 1"
                                        validator="#{Admin$Admin.comboAssociado_validate}" value="#{Admin$Admin.associadoSelecionado.selectedObject}" valueChangeListener="#{Admin$Admin.comboAssociado_processValueChange}">
                                        <f:selectItems id="selectOneMenu1selectItems" value="#{Admin$Admin.associados}"/>
                                    </ice:selectOneMenu>
                                    <ice:message errorClass="errorMessage" fatalClass="fatalMessage" for="comboAssociado" id="msgComboAssociado"
                                        infoClass="infoMessage"
                                        style="color: red; font-family: 'Verdana','Arial','Helvetica',sans-serif; font-size: 14px; font-style: normal; font-weight: bold; height: 20px; left: 240px; top: 0px; position: absolute; width: 334px" warnClass="warnMessage"/>
                                </ice:panelLayout>
                                <!-- Campo CPF -->
                                <ice:inputText binding="#{Admin$Admin.campoCpf}" id="campoCpf" maxlength="14" onkeypress="mascara(this,cpf);"
                                    partialSubmit="true" required="true"
                                    style="font-family: 'Verdana','Arial','Helvetica',sans-serif; left: 262px; top: 166px; position: absolute; width: 230px" value="#{Usuario.loginUsuario}"/>
                                <!-- Campo Senha -->
                                <ice:inputSecret binding="#{Admin$Admin.campoSenha}" id="campoSenha" maxlength="30" partialSubmit="true" redisplay="true"
                                    required="true"
                                    style="font-family: 'Verdana','Arial','Helvetica',sans-serif; left: 262px; top: 190px; position: absolute; width: 230px" value="#{Usuario.senhaUsuario}"/>
                                <!-- Campo Confirma Senha -->
                                <ice:inputSecret binding="#{Admin$Admin.campoConfirmaSenha}" id="campoConfirmaSenha" maxlength="30" partialSubmit="true"
                                    redisplay="true" required="true"
                                    style="font-family: Verdana,Arial,Helvetica,sans-serif; left: 262px; top: 214px; position: absolute; width: 230px" validator="#{Admin$Admin.validaConfirmaSenha}"/>
                                <!-- Campo  Frase Secreta -->
                                <ice:inputText binding="#{Admin$Admin.campoFraseSecreta}" id="campoFraseSecreta" maxlength="100" partialSubmit="true"
                                    required="true"
                                    style="font-family: 'Verdana','Arial','Helvetica',sans-serif; left: 262px; top: 238px; position: absolute; width: 230px" value="#{Usuario.dicaSenha}"/>
                                <!-- Mensagens -->
                                <ice:message errorClass="iceMsgError errorMessage" fatalClass="iceMsgFatal fatalMessage" for="campoCpf" id="msgCpf"
                                    infoClass="iceMsgInfo infoMessage" showSummary="true"
                                    style="color: red; font-family: 'Verdana','Arial','Helvetica',sans-serif; font-size: 14px; font-style: normal; font-weight: bold; height: 20px; left: 504px; top: 168px; position: absolute; width: 334px" warnClass="iceMsgWarn warnMessage"/>
                                <ice:message errorClass="iceMsgError errorMessage" fatalClass="iceMsgFatal fatalMessage" for="campoSenha" id="msgSenha"
                                    infoClass="iceMsgInfo infoMessage" showSummary="true"
                                    style="color: red; font-family: 'Verdana','Arial','Helvetica',sans-serif; font-size: 14px; font-style: normal; font-weight: bold; height: 20px; left: 504px; top: 192px; position: absolute; width: 334px" warnClass="iceMsgWarn warnMessage"/>
                                <ice:message errorClass="errorMessage" fatalClass="fatalMessage" for="campoConfirmaSenha" id="msgConfirmaSenha"
                                    infoClass="infoMessage" showSummary="true"
                                    style="color: red; font-family: 'Verdana','Arial','Helvetica',sans-serif; font-size: 14px; font-style: normal; font-weight: bold; height: 20px; left: 504px; top: 216px; position: absolute; width: 333px" warnClass="warnMessage"/>
                                <ice:message errorClass="errorMessage" fatalClass="fatalMessage" for="campoFraseSecreta" id="msgFraseSecreta"
                                    infoClass="infoMessage" showSummary="true"
                                    style="color: red; font-family: 'Verdana','Arial','Helvetica',sans-serif; font-size: 14px; font-style: normal; font-weight: bold; height: 20px; left: 504px; top: 240px; position: absolute; width: 333px" warnClass="warnMessage"/>
                                <!-- Painel Opções -->
                                <ice:panelLayout id="painelOpcoes" layout="flow" style="height: 46px; left: 0px; top: 0px; position: absolute; width: 980px; -rave-layout: grid">
                                    <ice:commandButton action="#{Admin$Admin.botaoNovo_action}" alt="Novo" binding="#{Admin$Admin.botaoNovo}" id="botaoNovo"
                                        image="/resources/botaoNovo.png" immediate="true"
                                        style="height: 45px; left: 168px; top: 0px; position: absolute; width: 64px" title="Novo" value="Novo"/>
                                    <ice:commandButton action="#{Admin$Admin.botaoConsultar_action}" binding="#{Admin$Admin.botaoConsultar}" id="botaoConsultar"
                                        image="/resources/botaoConsultar.png" immediate="true" partialSubmit="true"
                                        style="height: 45px; left: 240px; top: 0px; position: absolute; width: 64px" title="Consultar" value="Consultar"/>
                                    <ice:commandButton action="#{Admin$Admin.botaoAlterar_action}" binding="#{Admin$Admin.botaoAlterar}" id="botaoAlterar"
                                        image="/resources/botaoAlterar.png" immediate="true"
                                        style="height: 45px; left: 312px; top: 0px; position: absolute; width: 64px" title="Alterar" value="Alterar"/>
                                    <ice:commandButton binding="#{Admin$Admin.botaoImprimir}" id="botaoImprimir" image="/resources/botaoImprimir.png"
                                        style="height: 45px; left: 384px; top: 0px; position: absolute; width: 64px" title="Imprimir" value="Imprimir"/>
                                    <ice:commandButton action="#{Admin$Admin.botaoCadastrar_action}" binding="#{Admin$Admin.botaoCadastrar}" id="botaoCadastrar"
                                        image="/resources/botaoSalvar.png" style="height: 45px; left: 456px; top: 0px; position: absolute; width: 64px"
                                        title="Salvar/Cadastrar" value="Cadastrar"/>
                                    <ice:commandButton action="#{Admin$Admin.botaoLimpar_action}" binding="#{Admin$Admin.botaoLimpar}" id="botaoLimpar"
                                        image="/resources/botaoLimpar.png" immediate="true"
                                        style="height: 45px; left: 528px; top: 0px; position: absolute; width: 64px" title="Limpar Campos" value="Limpar"/>
                                    <ice:commandButton action="#{Admin$Admin.botaoSair_action}" binding="#{Admin$Admin.botaoSair}" id="botaoSair"
                                        image="/resources/botaoSair.png" immediate="true" partialSubmit="true"
                                        style="height: 45px; left: 912px; top: 0px; position: absolute; width: 64px" title="Sair" value="Sair"/>
                                </ice:panelLayout>
                            </ice:panelLayout>
                        </ice:panelGroup>
                    </ice:form>
                </ice:outputBody>
            </body>
        </ice:outputHtml>
    </f:view>
</jsp:root>
